
#ifndef _CFILEINFO_H_
#define _CFILEINFO_H_

#pragma once

#include "KWow64FsRedrt.h"
#include "FileFingerprint.h"
#include "../typedef_define.h"
#include <string>
using namespace basic;

bool BytesToChar( BYTE byMd5[], char* chMd5,int len);
typedef int (*PFN_TRUSTVERIFY)	(char IN *szFileName, char OUT *szSubjectName, char OUT *szIssuerName,DWORD IN nowtick);

extern PFN_TRUSTVERIFY							g_pfnTrustVerify;

class CFileInfo
{
public:
	CFileInfo();
	virtual ~CFileInfo();
public:
	BOOL InitDLL(LPCTSTR VRVTrustVerifydllPath);

	String GetFingerPrint( TCHAR *Path) ;

	long GetFileInfo (TCHAR *Path ,PFILE_INFO pFileInfo ) ;

	int TrustVerify(char *szFileName, char *szSubjectName, char *szIssuerName) ;

	bool BytesToChar(BYTE byMd5[],char* chMd5,int len) ;
private:
	HMODULE m_handleTrust;
};

#endif